Metered dose inhaler (MDI) sensor device